<?php

namespace app\admin\controller\mall\user;

use app\admin\controller\mall\Base;

/**
 * 用户地址
 *
 * @icon fa fa-circle-o
 */
class Address extends Base
{
    
    /**
     * Address模型对象
     * @var \app\common\model\mall\user\Address
     */
    protected $model = null;

    public function _initialize()
    {
        parent::_initialize();
        $exist = \think\Db::query("show tables like'".config('database.prefix')."area'");
        if(!$exist) $this->error("地区数据不存在，请安装<a href=\"https://www.fastadmin.net/store/example.html\" target=\"_blank\">[开发示例]</a>插件！");
        $this->model = new \app\common\model\mall\user\Address;

    }

}
